The default align of FILL was fine with the asset-based switches,
as the image would still keep its fixed height. But after the switch
to a pure CSS implementation, the alignment now results in stretched
switches. Fix this by explicitly center-aligning the widget.
Close: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7745
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3403>
super._init({
style_class: 'toggle-switch',
accessible_role: Atk.Role.CHECK_BOX,
+ y_align: Clutter.ActorAlign.CENTER,
track_hover: true,
reactive: true,
});